import request from '@/utils/request'
import { BaseResponse } from '../base'
import { UserInfo } from '../login/type'
import { StudentInfo } from './type'

export function getMy(): Promise<BaseResponse> {
  return request({ url: '/campus/user/my', method: 'get' })
}
export function modify(data: UserInfo): Promise<BaseResponse> {
  return request({ url: '/campus/user/modify', method: 'put', data })
}
export function auth(data: StudentInfo): Promise<BaseResponse> {
  return request({ url: '/campus/student/auth', method: 'post', data })
}
export function info(): Promise<BaseResponse> {
  return request({ url: '/campus/student/info', method: 'get' })
}